@layout("/common/_container.html",{js:["/assets/hx/storage/hxStoragePut/hxStoragePut.js"]}){

<div class="layui-body-header">
    <span class="layui-body-header-title">入库单表管理</span>
</div>

<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-sm12 layui-col-md12 layui-col-lg12">
            <div class="layui-card">
                <div class="layui-card-body">
                    <div class="layui-form toolbar">
                        <div class="layui-form-item">
		                    <div class="layui-inline">
		                        <select id="storageState">
						            <option value="">选择状态</option>
						            <option value="未完成">未完成</option>
						            <option value="已完成">已完成</option>
		                        </select>
		                    </div>
		                    <div class="layui-inline">
		                        <select id="timeType">
						            <option value="cj">创建时间</option>
						            <option value="yy">预约时间</option>
						            <option value="wc">完成时间</option>
		                        </select>
		                    </div>
		                    <div class="layui-inline" style="width: 150px;">
		                        <input id="startTime" class="layui-input" autocomplete="off" type="text" placeholder="开始时间从"/>
		                    </div>
                            <div class="layui-inline">
                            	一
                            </div>
		                    <div class="layui-inline" style="width: 150px;">
		                        <input id="endTime" class="layui-input" autocomplete="off" type="text" placeholder="结束时间至"/>
		                    </div>
		                    <div class="layui-inline">
								<select id="customerId">
					            	<option value="">选择客户</option>
						            @for(item in customerlist!){
						            <option value="${item.id}">${item.customerName}</option>
						            @}
					        	</select>
		                    </div>
		                    <div class="layui-inline">
								<select id="getWarehouseId">
					            	<option value="">选择仓库</option>
						            @for(item in basicWarehouseList!){
						            <option value="${item.id}">${item.warehouseName}</option>
						            @}
					        	</select>
		                    </div>
				            <div class="layui-inline">
                				<input id="setUnit" class="layui-input" type="text" placeholder="发货客户"/>
		                        <button type="button" class="layui-btn layui-btn-primary" id="choiceSetUnit" style="position: absolute;right: 1px;cursor: pointer;top: 2px"><i class="layui-icon">&#xe615;</i></button>
				            </div>
				            <div class="layui-inline">
                				<input id="condition" class="layui-input" type="text" placeholder="单号"/>
				            </div>
		                    <div class="layui-inline">
		                        <select id="orderType">
		                            <option value="">选择类型</option>
						            <option value="采购收货">采购收货</option>
						            <option value="门店调入">门店调入</option>
						            <option value="批发收货">批发收货</option>
									<option value="仓间调拨">仓间调拨</option>
									<option value="盘盈入库">盘盈入库</option>
		                        </select>
		                    </div>
				            <div class="layui-inline">
                				<input id="goodsName" class="layui-input" type="text" placeholder="商品档案"/>
		                        <button type="button" class="layui-btn layui-btn-primary" id="choiceGoods" style="position: absolute;right: 1px;cursor: pointer;top: 2px"><i class="layui-icon">&#xe615;</i></button>
				            </div>
				            <div class="layui-inline">
				                <button id="btnSearch" class="layui-btn icon-btn"><i class="layui-icon">&#xe615;</i>搜索</button>
<!--								<button id="examine" class="layui-btn icon-btn"><i class="layui-icon">&#xe67d;</i>审核回传</button>-->
								<button id="btnsdwc" class="layui-btn icon-btn"><i class="layui-icon">&#xe67d;</i>手动完成</button>
								<button id="reset" class="layui-btn icon-btn layui-btn-primary"><i class="layui-icon">&#xe666;</i>重置</button>
				                <button id="btnExp" class="layui-btn icon-btn"><i class="layui-icon">&#xe67d;</i>导出</button>
				            </div>
                        </div>
                    </div>
                    <table class="layui-table" id="hxStoragePutTable" lay-filter="hxStoragePutTable"></table>
                    <table class="layui-table" id="hxStoragePutDetailedTable" lay-filter="hxStoragePutDetailedTable"></table>
                </div>
            </div>
        </div>
    </div>
</div>

<script type="text/html" id="toolbarfromDetailed">
            <div class="layui-inline">
                <input id="condition2" class="layui-input" type="text" placeholder="关键词"/>
            </div>
            <div class="layui-inline">
                <button id="btnSearchDetailed" class="layui-btn icon-btn"><i class="layui-icon">&#xe615;</i>搜索</button>
            </div>
</script>
<script type="text/html" id="storageStateTpl">
  {{#  if(d.storageState === '未完成'){ }}
    <span>{{ d.storageState }}</span>
  {{#  }else if(d.storageState === '已完成'){ }}
    <span style="color: #43CF7C;font-weight: 600;">{{ d.storageState }}</span>
  {{#  } }}
</script>
<script type="text/html" id="putStateTpl">
  {{#  if(d.putState === '已领取'){ }}
    <span style="color: #FFC300;font-weight: 600;">{{ d.putState }}</span>
  {{#  }else if(d.putState === '已上架'){ }}
    <span style="color: #43CF7C;font-weight: 600;">{{ d.putState }}</span>
  {{#  } else { }}
    {{ d.putState }}
  {{#  } }}
</script>

@}